.main-layout {
  min-height: 100vh;
  display: flex;
}

.main-sider {
  background: #001529;
  box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
  width: 200px;
  transition: width 0.3s;
  flex-shrink: 0;
}

.main-sider.collapsed {
  width: 80px;
}

.main-sider .logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #002140;
  color: white;
  font-weight: bold;
  border-bottom: 1px solid #1f1f1f;
}

.main-sider .logo h2 {
  margin: 0;
  color: #1890ff;
  font-size: 18px;
}

.main-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.main-header {
  background: white;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  z-index: 1000;
  height: 64px;
}

.header-left {
  display: flex;
  align-items: center;
}

.collapse-btn {
  margin-right: 16px;
  font-size: 16px;
  min-width: 32px;
  height: 32px;
  padding: 0;
}

.breadcrumb {
  color: #666;
  font-size: 14px;
}

.header-right {
  display: flex;
  align-items: center;
}

.user-avatar {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.user-avatar:hover {
  background-color: #f5f5f5;
}

.user-avatar .username {
  margin-left: 8px;
  color: #333;
  font-size: 14px;
}

.main-content {
  background: #f0f2f5;
  padding: 24px;
  flex: 1;
}

.content-wrapper {
  background: white;
  padding: 24px;
  border-radius: 6px;
  min-height: calc(100vh - 112px);
}

/* 用户下拉菜单样式 */
.user-dropdown {
  min-width: 200px;
  padding: 16px 0;
}

.user-info {
  display: flex;
  align-items: center;
  padding: 0 16px 16px;
}

.user-details {
  margin-left: 12px;
}

.user-details .username {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.user-details .user-role {
  color: #666;
  font-size: 12px;
  margin-top: 2px;
}

.menu-items {
  padding: 0 16px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 2px 0;
}

.menu-item:hover {
  background-color: #f5f5f5;
}

.menu-item .icon {
  margin-right: 8px;
  font-size: 14px;
}

.menu-item span {
  font-size: 14px;
  color: #333;
}

.menu-item.logout {
  color: #ff4d4f;
}

.menu-item.logout .icon,
.menu-item.logout span {
  color: #ff4d4f;
}

.divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 8px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-sider {
    width: 80px;
  }
  
  .main-sider:not(.collapsed) {
    position: fixed;
    z-index: 1001;
    height: 100vh;
  }
  
  .main-header {
    padding: 0 16px;
  }
  
  .main-content {
    padding: 16px;
  }
  
  .content-wrapper {
    padding: 16px;
  }
  
  .breadcrumb {
    display: none;
  }
}
